Matthias Clasen [Mon, 1 Apr 2019 00:43:19 +0000 (20:43 -0400)]
Fix up the border/background-color removal
I overlooked one level of indirection here. Oops.
Matthias Clasen [Sun, 31 Mar 2019 20:16:01 +0000 (16:16 -0400)]
tooltips: Don't use a cursor_size of 0
This leads to flickering tooltips.
Matthias Clasen [Sun, 31 Mar 2019 19:56:05 +0000 (19:56 +0000)]
Merge branch 'deprecations' into 'master'
Drop deprecated style context apis
See merge request GNOME/gtk!691
Matthias Clasen [Sun, 31 Mar 2019 19:04:39 +0000 (15:04 -0400)]
Drop deprecated style context api
Matthias Clasen [Sun, 31 Mar 2019 19:03:57 +0000 (15:03 -0400)]
Stop using deprecated style context api
Use the non-deprecated one it wraps, instead.
Yes, this is cheating...
Matthias Clasen [Sun, 31 Mar 2019 18:27:24 +0000 (18:27 +0000)]
Merge branch 'fix-event-forwarding' into 'master'
Trigger bindings when forwarding key events
Closes #1793
See merge request GNOME/gtk!690
Benjamin Otte [Sun, 31 Mar 2019 18:04:02 +0000 (20:04 +0200)]
textview: Fix comparison thinko
Apparently, we have no test that checks for actually drawing text, so
the thinko that caused all text to disappear in
4b07d2815375856823532b2238d87455c3be2f7c went unnoticed.
Matthias Clasen [Sun, 31 Mar 2019 18:04:35 +0000 (14:04 -0400)]
Trigger bindings when forwarding key events
This broke backspace handling in entries when an entry
completion is present.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1793
Matthias Clasen [Sun, 31 Mar 2019 16:36:09 +0000 (12:36 -0400)]
text: Handle 'inverted' selections
We must handle selection_bound > cursor in
various places. This was lost in the big
entry refactoring.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1792
Timm Bäder [Sun, 31 Mar 2019 04:37:10 +0000 (06:37 +0200)]
build: Don't use 'continue'
It does not exist in meson 0.48 apparently.
Timm Bäder [Sun, 31 Mar 2019 04:16:16 +0000 (06:16 +0200)]
gl renderer: Apply transform only for final texture drawing
We don't want the new transform while drawing things on a texture.
Instead, only apply the new transform matrix when adding the final
texture drawing ops.
This fixes the stack cube rotation transition to at least look somewhat
better.
Timm Bäder [Sun, 31 Mar 2019 04:14:41 +0000 (06:14 +0200)]
gl renderer: Add debug code to dump framebuffer
This way we can specify it on specific add_offscreen_ops callsites.
Mohammed Sadiq [Sun, 31 Mar 2019 03:07:45 +0000 (08:37 +0530)]
mediastream: fix documentation
Daniel Boles [Sat, 30 Mar 2019 19:47:50 +0000 (19:47 +0000)]
Widget: Don't refer to the old get_preferred_*()
measure() replaced get_preferred_height() and get_preferred_width().
Piotr Drąg [Sat, 30 Mar 2019 13:54:20 +0000 (14:54 +0100)]
Update Polish translation
Piotr Drąg [Sat, 30 Mar 2019 13:39:18 +0000 (14:39 +0100)]
Update POTFILES.in
Matthias Clasen [Fri, 29 Mar 2019 22:50:10 +0000 (22:50 +0000)]
Merge branch 'wip/ebassi/align-test' into 'master'
Remove aligned allocation checks
See merge request GNOME/gtk!596
Matthias Clasen [Fri, 29 Mar 2019 16:23:53 +0000 (16:23 +0000)]
Merge branch 'remove-deprecations' into 'master'
Remove gdk_device_grab/ungrab from public api
See merge request GNOME/gtk!682
Matthias Clasen [Fri, 29 Mar 2019 15:55:58 +0000 (11:55 -0400)]
Don't mark GDK_SURFACE_STATE_TILED as deprecated
I've come to the conclusion that we should keep
this state, since not all backends support per-edge
information. Updated the docs to explain how the
tiled state relates to the per-edge states.
Matthias Clasen [Fri, 29 Mar 2019 15:55:42 +0000 (11:55 -0400)]
Add a missing include
Matthias Clasen [Fri, 29 Mar 2019 15:31:13 +0000 (11:31 -0400)]
Remove gdk_device_grab/ungrab from public api
They are still used internally in gdk, but we no
longer offer them as public api.
Matthias Clasen [Fri, 29 Mar 2019 14:57:51 +0000 (10:57 -0400)]
revealer: Add a missing break
This was showing up as the slide-down transition
being broken.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1790
Matthias Clasen [Fri, 29 Mar 2019 14:51:00 +0000 (10:51 -0400)]
testrevealer: Cover the new transitions
Add tests for all the swing transitions.
Emmanuele Bassi [Fri, 29 Mar 2019 14:47:28 +0000 (14:47 +0000)]
Merge branch 'build-warning' into 'master'
build: Do not use `install` argument for configure_file()
See merge request GNOME/gtk!681
Emmanuele Bassi [Fri, 29 Mar 2019 13:59:58 +0000 (13:59 +0000)]
build: Do not use `install` argument for configure_file()
The `install` argument for configure_file() was introduced in Meson
0.50, and was ignored in earlier versions.
Since we're still using Meson 0.48 as a baseline, and since it doesn't
cost us nothing to use a conditional in the only place where we used the
`install` argument, let's drop it. This avoids a warning in newer
releases of Meson.
Alexander Larsson [Fri, 29 Mar 2019 14:28:29 +0000 (14:28 +0000)]
Merge branch 'wip/alexl/broadway7' into 'master'
Even more broadway updates
See merge request GNOME/gtk!680
Matthias Clasen [Fri, 29 Mar 2019 14:23:45 +0000 (14:23 +0000)]
Merge branch 'cube-spin' into 'master'
stack: Add a cube spin transition
See merge request GNOME/gtk!679
Benjamin Otte [Tue, 5 Mar 2019 19:44:45 +0000 (20:44 +0100)]
stack: Add a cube spin transition
Add a transition to GtkStack that pretends pages
are the sides or a cube, and switch them by
rotating the cube.
Use this transition in widget-factory.
Alexander Larsson [Fri, 29 Mar 2019 12:18:17 +0000 (13:18 +0100)]
broadway: Optionally support data: uris instead of blobs
This is nice when you want to make a "screenshot" by using save-as.
Its not going to perform as well though, so you have to enable it
by adding ?datauri to the url
Alexander Larsson [Fri, 29 Mar 2019 11:31:42 +0000 (12:31 +0100)]
broadway: Report some level of frame timings
This is not ideal because we report the time of a full roundtrip, rather
than the presentation time, but its better than nothing, and i'm not sure
how the browser time should be reconciled.
Alexander Larsson [Fri, 29 Mar 2019 10:44:46 +0000 (11:44 +0100)]
broadway: Change events and ops enums to straight ints
Alexander Larsson [Fri, 29 Mar 2019 10:13:24 +0000 (11:13 +0100)]
broadway: More multi-display fixes
When doing idle flushing, do so per display rather than a global
and some find_display hack.
Alexander Larsson [Fri, 29 Mar 2019 10:07:21 +0000 (11:07 +0100)]
broadway: Add warning for unexpected roundtrip delays
Alexander Larsson [Fri, 29 Mar 2019 10:07:04 +0000 (11:07 +0100)]
broadway: Keep track of surface owner and only send input to that client
Alexander Larsson [Fri, 29 Mar 2019 10:03:38 +0000 (11:03 +0100)]
broadway: Fix handling of input with multiple in-process GdkDisplays
We need each instance to only forward input to the right display.
This make the inspector work better.
Alexander Larsson [Fri, 29 Mar 2019 08:26:13 +0000 (09:26 +0100)]
broadway: Add minor comment
Alexander Larsson [Fri, 29 Mar 2019 08:09:54 +0000 (09:09 +0100)]
broadway: Move gsk files to a subdirectory
Alexander Larsson [Thu, 28 Mar 2019 22:31:36 +0000 (23:31 +0100)]
broadway: Optimize color matrix + texture nodes to pre-colorized texture
Alexander Larsson [Thu, 28 Mar 2019 19:22:44 +0000 (20:22 +0100)]
broadway: Support patching nodes for textures and transforms
Alexander Larsson [Thu, 28 Mar 2019 18:17:01 +0000 (19:17 +0100)]
broadway: Reintroduce smarter diffing
We now send very minimal diff operations.
Alexander Larsson [Thu, 28 Mar 2019 15:03:42 +0000 (16:03 +0100)]
broadway: Initial restructuring of node tree diffing
This goes back to a very naive diff, but that reuses nodes from
previous frames using the node id. This will be a bettter base
to start from.
Alexander Larsson [Thu, 28 Mar 2019 09:37:21 +0000 (10:37 +0100)]
broadway: Update broadway_node_type_names
Alexander Larsson [Thu, 28 Mar 2019 09:13:16 +0000 (10:13 +0100)]
Broadway: Send configure notify on move/resize too
Alexander Larsson [Thu, 28 Mar 2019 08:36:30 +0000 (09:36 +0100)]
broadway: Fix coordinates when drag move/resizeing
The x/y passed in are in the surface, not root coords.
Anders Jonsson [Fri, 29 Mar 2019 10:50:54 +0000 (10:50 +0000)]
Update Swedish translation
(cherry picked from commit
2b768edd43ddcbf9a9bd43cdb5c79b1e5a1495a5)
Benjamin Otte [Fri, 29 Mar 2019 09:19:41 +0000 (10:19 +0100)]
Revert "Bump meson req to 0.50"
This reverts commit
f0845d98a21a7a5c5817d50f2076dd2615e3979b.
The commit breaks CI. CI has more power than meson telling things.
Benjamin Otte [Fri, 29 Mar 2019 08:43:16 +0000 (09:43 +0100)]
build: The private reftest library needs to be shared
Otherwise the module and gtk-reftest will each have their own copy and
that'll mean all symbols - and inhibiting the shutdown - will exist
twice. Not good.
Benjamin Otte [Fri, 29 Mar 2019 07:20:04 +0000 (08:20 +0100)]
reftests: Remove notebook-childproperties test
Notebooks have no child properties anymore.
Benjamin Otte [Fri, 29 Mar 2019 07:15:23 +0000 (08:15 +0100)]
reftests: Fix textview-tags test
The test was timeouting on X11.
I'm still not sure it does what it should do, but at least that
problem's gone.
Benjamin Otte [Fri, 29 Mar 2019 06:55:52 +0000 (07:55 +0100)]
reftests: Fix label-sizing test
Set border, padding and margin to 0, not just padding.
Benjamin Otte [Fri, 29 Mar 2019 04:52:44 +0000 (05:52 +0100)]
reftests: Remove box-packing test
Boxes have no packing flags anymore.
Benjamin Otte [Fri, 29 Mar 2019 04:42:56 +0000 (05:42 +0100)]
reftests: Fix grid-empty-with-spacing test
Widgets are visible by default now, so make sure the ones that should be
invisible are marked as such.
Benjamin Otte [Fri, 29 Mar 2019 04:40:08 +0000 (05:40 +0100)]
reftests: Fix grid-spacing2 test
The expand flag needs to be set on widgets when previously it was a
packing property.
Benjamin Otte [Fri, 29 Mar 2019 04:36:12 +0000 (05:36 +0100)]
picture: Don't cause warnings on load failures
When a file set via gtk_picture_set_file() can't be loaded, just
silently don't load it.
Reftest picture-load-invalid-file added for that case.
Benjamin Otte [Fri, 29 Mar 2019 04:30:24 +0000 (05:30 +0100)]
reftests: Fix image-load-from-file test
- Images are always correctly sized
- Use a GtkPicture for the large file
Benjamin Otte [Fri, 29 Mar 2019 04:17:35 +0000 (05:17 +0100)]
reftests: Fix iconview-empty test
Images have a static size now, use a GtkPicture instead.
Benjamin Otte [Fri, 29 Mar 2019 04:01:33 +0000 (05:01 +0100)]
cssimagelinear: Make gradient offsets stay in [0, 1]
Fixes linear-gradient reftest
Benjamin Otte [Fri, 29 Mar 2019 03:11:11 +0000 (04:11 +0100)]
reftests: Fix shorthand-entry-border test
We weren't setting CSS back to defaults, so the border highlight
transition would be at different stages when the 2 snapshots happened.
Benjamin Otte [Fri, 29 Mar 2019 03:04:27 +0000 (04:04 +0100)]
reftests: Remove style-properties-nth-child test
Style properties don't exist anymore.
Benjamin Otte [Fri, 29 Mar 2019 03:02:34 +0000 (04:02 +0100)]
reftests: Fix statusbar-remove-all test
Benjamin Otte [Fri, 29 Mar 2019 03:00:59 +0000 (04:00 +0100)]
textview: Paint border windows in the right spot
Fixes textview-border-windows reftest
Benjamin Otte [Fri, 29 Mar 2019 02:42:16 +0000 (03:42 +0100)]
Fix textview-margins reftest
Draw something, otherwise the test will timeout
Benjamin Otte [Fri, 29 Mar 2019 02:31:04 +0000 (03:31 +0100)]
headerbar: Duct-tape over the measure mess
Fixes various reftests.
The headerbar needs soeone to redo sizing.
Benjamin Otte [Thu, 28 Mar 2019 23:24:54 +0000 (00:24 +0100)]
reftests: Fix inherit-and-initial test
Run gtk-builder-tool --3to4 over it. As the test cares about the
"initial" and "inherit" CSS keywords, the actual widgets aren't that
important. It's just important to have many of them.
Benjamin Otte [Thu, 28 Mar 2019 23:24:00 +0000 (00:24 +0100)]
textlayout: Allow querying empty areas
This only happens when the textview has no content, but it does happen
now that such a textview gets allocated 0x0 and not 1x1.
Benjamin Otte [Thu, 28 Mar 2019 22:57:00 +0000 (23:57 +0100)]
rendernode: Round pixel colors in color matrix drawing
Fixes symbolic-icon-translucent-color.ui reftest
Benjamin Otte [Thu, 28 Mar 2019 19:44:39 +0000 (20:44 +0100)]
reftests: Remove info-bar-message-types test
- The test doesn't properly test infobars. An infobar is not a box.
- Infobar message types aren't styled anymore.
Benjamin Otte [Thu, 28 Mar 2019 19:33:33 +0000 (20:33 +0100)]
reftests: Fix notebook-tab-position test
The tab-fill child property is gone, don't use it.
Benjamin Otte [Thu, 28 Mar 2019 00:10:16 +0000 (01:10 +0100)]
reftests: Fix icon-style-basics test
Add a type-func to the GThemedIcon and GEmeblemedIcon usages so
GtkBuilder finds them.
Benjamin Otte [Wed, 27 Mar 2019 23:54:49 +0000 (00:54 +0100)]
reftests: Fix css-match-name test
- Replace GtkImage::pixbuf with GtkImage::paintable
- Use a GtkPicture so the sizing is correct
Benjamin Otte [Wed, 27 Mar 2019 23:52:35 +0000 (00:52 +0100)]
reftests: Fix css-match-type test
- Replace GtkImage::pixbuf with GtkImage::paintable
- Use a GtkPicture so the sizing is correct
Benjamin Otte [Wed, 27 Mar 2019 23:39:36 +0000 (00:39 +0100)]
reftests: Fix border-image-excess-size.ui test
The old reftests drew an opaque image, the new image is transparent.
This test drew the reference image as black and the test as transparent
black, and those are now different.
Benjamin Otte [Wed, 27 Mar 2019 23:34:23 +0000 (00:34 +0100)]
reftests: Delete removed tests from testdata
Benjamin Otte [Wed, 27 Mar 2019 23:27:51 +0000 (00:27 +0100)]
reftests: Fix css-currentcolor-alpha.ui test
The test did not draw anything, which fails now.
Benjamin Otte [Wed, 27 Mar 2019 23:24:44 +0000 (00:24 +0100)]
reftests: Fix css-match-class test
- Replace GtkImage::pixbuf with GtkImage::paintable
- Use a GtkPicture so the sizing is correct
Benjamin Otte [Wed, 27 Mar 2019 04:19:42 +0000 (05:19 +0100)]
reftests: Fix background-size-zero test
We were drawing nothing, causing a timeout.
Benjamin Otte [Wed, 27 Mar 2019 04:02:22 +0000 (05:02 +0100)]
reftests: Fix nth-child test
Box children no longer have a "position" child property.
Benjamin Otte [Wed, 27 Mar 2019 03:53:56 +0000 (04:53 +0100)]
reftests: Fix treeview-fixed-height test
Convert -gtk-gradient() to linear-gradient in the CSS.
Benjamin Otte [Wed, 27 Mar 2019 03:52:59 +0000 (04:52 +0100)]
reftests: Actually build a module
Reftests are expecting a module called libreftest.so, so don't build a
static libgtkreftest.a but what they expect.
Benjamin Otte [Wed, 27 Mar 2019 03:36:15 +0000 (04:36 +0100)]
reftests: Fix actionbar test
Boxes have no pack-type anymore.
Benjamin Otte [Wed, 27 Mar 2019 02:55:18 +0000 (03:55 +0100)]
reftests: Fix window-height-for-width test
The dialog's vbox internal child is now called content_area
Benjamin Otte [Wed, 27 Mar 2019 02:46:03 +0000 (03:46 +0100)]
reftests: Fix grid-spacing1 test
Benjamin Otte [Wed, 27 Mar 2019 02:41:13 +0000 (03:41 +0100)]
reftests: Fix unresolvable.ui test
- Make sure we draw something
- Don't use -gtk-gradient() but linear-gradient instead
Benjamin Otte [Wed, 27 Mar 2019 02:41:03 +0000 (03:41 +0100)]
widgetpaintable: Don't emit signals on dispose
Benjamin Otte [Wed, 27 Mar 2019 02:19:05 +0000 (03:19 +0100)]
reftest: Be more careful about snapshotting
Instead of waiting for the first invalidate-contents signal, wait until
we get a render node. This will break spectacularly for reftests not
drawing anything at all, but we just hope that won't happen.
Benjamin Otte [Wed, 27 Mar 2019 01:59:13 +0000 (02:59 +0100)]
reftests: Make meson run every test separately
This way, we don't get an abort once the first test gets a warning.
We also can use meson test to run individual tests.
Unfortunately, only ~60% of tests pass.
Benjamin Otte [Tue, 26 Mar 2019 16:35:26 +0000 (17:35 +0100)]
testsuite: Make reftests work again
Well, the testrunner works again, the tests don't all succeed.
So exclude them from CI.
Benjamin Otte [Tue, 26 Mar 2019 16:09:19 +0000 (17:09 +0100)]
reftests: Remove image-recording-surface test
It's no longer possible to set surfaces on a GtkImage, so we don't need
to test that setting a recording surface works.
Chun-wei Fan [Fri, 29 Mar 2019 08:48:29 +0000 (16:48 +0800)]
gdk/win32/gdkdrag-win32.c: Include math.h
We need that for round().
Chun-wei Fan [Fri, 29 Mar 2019 08:47:31 +0000 (16:47 +0800)]
meson.build: Pull in fallback for PangoFT2 only when needed
On some systems PangoFT2 is optional, so we only use the fallback when
it is being required.
Matthias Clasen [Fri, 29 Mar 2019 00:51:23 +0000 (00:51 +0000)]
Merge branch 'adwaita-radii-fixes-master' into 'master'
Adwaita radii fixes master
See merge request GNOME/gtk!628
Matthias Clasen [Thu, 28 Mar 2019 23:28:05 +0000 (19:28 -0400)]
builder-tool: Don't strip the xml declaration
This is useful for interoperability with other tools.
Matthias Clasen [Thu, 28 Mar 2019 22:55:36 +0000 (18:55 -0400)]
file chooser entry: Fix a crash
The ::focus-out signal signature has changed. Adapt.
Matthias Clasen [Thu, 28 Mar 2019 22:27:42 +0000 (18:27 -0400)]
popover menu: Fix a parameter name mismatch
Matthias Clasen [Thu, 28 Mar 2019 22:27:25 +0000 (18:27 -0400)]
overlay: Remove no-longer-existing api from header
Matthias Clasen [Thu, 28 Mar 2019 22:27:08 +0000 (18:27 -0400)]
gtk: Some documentation cleanups
Matthias Clasen [Thu, 28 Mar 2019 22:08:15 +0000 (18:08 -0400)]
gsk: Fix up docs a bit
Some apis that were either removed or have never
existed were listed for the docs.
Matthias Clasen [Thu, 28 Mar 2019 22:06:00 +0000 (18:06 -0400)]
gsk: Add GskRoundedRect to the docs
Christoph Reiter [Thu, 28 Mar 2019 21:47:18 +0000 (22:47 +0100)]
CI: install meson 0.50
Matthias Clasen [Thu, 28 Mar 2019 21:35:50 +0000 (17:35 -0400)]
Bump meson req to 0.50
meson told me to.